html {
  background: linear-gradient(120deg, #fafdff 0%, #e0f7fa 30%, #e3e6ff 55%, #b3eaff 80%, #e6f7ff 90%, #ffffff 100%);
  background-attachment: fixed;
}


/* 基础字体和全局设置 */
html, body, body.all-page, input, textarea, select, button {
  font-family: 'Inter', 'Segoe UI', 'Roboto', 'Arial', 'sans-serif';
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
#adminContainer {
  width: 100%;
  max-width: 1100px;
  margin: 40px auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px #e0e0e0;
  padding: 14px 10px 14px 10px;
}
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.admin-title {
  font-size: 24px;
  font-weight: 600;
  color: #1677ff;
}
.admin-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
.admin-actions button, #searchBar button, .pagination button {
  background: linear-gradient(90deg, #1677ff 0%, #69b1ff 100%);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 6px 18px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
  box-shadow: 0 2px 8px rgba(22,119,255,0.08);
}
.admin-actions button:hover, #searchBar button:hover, .pagination button.active, .pagination button:hover {
  background: linear-gradient(90deg, #135ecb 0%, #1677ff 100%);
}

/* 统一图标按钮样式 */
.icon-button {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 8px !important;
  cursor: pointer;
  outline: none;
  transition: transform 0.2s ease, background-color 0.2s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50% !important;
  width: 40px;
  height: 40px;
}

.icon-button:hover {
  transform: scale(1.1);
  background-color: rgba(22, 119, 255, 0.1) !important;
}

.icon-button:hover svg {
  stroke: #135ecb;
}

/* 按钮加载动画 */
@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.loading-icon {
  animation: rotate 1.5s linear infinite;
}

#searchBar {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}
#searchInput {
  flex: 1;
  padding: 6px 10px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  font-size: 14px;
}
#taskList {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 12px;
  table-layout: fixed;
}
#taskList th, #taskList td {
  border: 1px solid #f0f0f0;
  padding: 8px 10px;
  font-size: 14px;
  word-break: break-all;
}
#taskList th {
  background: #f7f8fa;
  color: #333;
  font-weight: 500;
}
#taskList tr:nth-child(even) {
  background: #fafbfc;
}
#taskList th:nth-child(1), #taskList td:nth-child(1) { width: 18%; }
#taskList th:nth-child(2), #taskList td:nth-child(2) { width: 8%; text-align: center; }
#taskList th:nth-child(3), #taskList td:nth-child(3) { width: 32%; }
#taskList th:nth-child(4), #taskList td:nth-child(4) { width: 10%; text-align: center; }
#taskList th:nth-child(5), #taskList td:nth-child(5) { width: 12%; }
#taskList th:nth-child(6), #taskList td:nth-child(6) { width: 12%; }
#totalRow {
  font-weight: bold;
  color: #1677ff;
}
.pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.pagination button {
  background: #f0f0f0;
  border: none;
  border-radius: 3px;
  padding: 2px 10px;
  font-size: 13px;
  cursor: pointer;
}
.pagination button.active, .pagination button:hover {
  background: #1677ff;
  color: #fff;
}
@media (max-width: 900px) {
  #adminContainer { padding: 10px 2px; }
  #taskList th, #taskList td { font-size: 12px; padding: 6px 4px; }
  .admin-title { font-size: 18px; }
} 

/* 模态框样式 */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
  background-color: #fefefe;
  margin: 3% auto;
  padding: 0;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  width: 90%;
  max-width: 800px;
  animation: modalOpen 0.3s ease;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

@keyframes modalOpen {
  from {opacity: 0; transform: translateY(-20px);}
  to {opacity: 1; transform: translateY(0);}
}

.modal-header {
  padding: 15px 20px;
  background: #f8f9fa;
  border-bottom: 1px solid #eee;
  border-radius: 8px 8px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.modal-header h2 {
  margin: 0;
  font-size: 18px;
  color: #1677ff;
  font-weight: 600;
}

.close {
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  line-height: 0.8;
}

.close:hover {
  color: #1677ff;
}

.modal-body {
  padding: 15px 20px;
  overflow-y: auto;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

#reportContent {
  width: 90%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1;
  flex-grow: 1;
  min-height: 300px;
  max-height: 60vh;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: 'Inter', 'Segoe UI', 'Roboto', 'Arial', 'sans-serif';
  background-color: #fff;
  margin: 0 auto;
}

/* 添加Markdown风格样式 */
.report-content {
  color: #333;
}

.report-content h1 {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 16px 0;
  color: #1677ff;
  border-bottom: 1px solid #eee;
  padding-bottom: 8px;
}

.report-content h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 24px 0 12px 0;
  color: #1677ff;
}

.report-content h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 16px 0 10px 0;
  color: #1677ff;
}

.report-content p {
  margin: 8px 0 12px 0;
}

.report-content ul {
  margin: 8px 0;
  padding-left: 20px;
}

.report-content li {
  margin-bottom: 6px;
  position: relative;
}

.report-content li p {
  margin: 4px 0;
}

.report-content code {
  background-color: #f5f5f5;
  padding: 2px 4px;
  border-radius: 3px;
  font-family: monospace;
  font-size: 13px;
  color: #d56161;
}

.modal-footer {
  padding: 15px 20px;
  background: #f8f9fa;
  border-top: 1px solid #eee;
  border-radius: 0 0 8px 8px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

.modal-footer button {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

#copyReportBtn {
  background: #1677ff;
  color: white;
}

#copyReportBtn:hover {
  background: #0d5ecc;
}

#closeModalBtn {
  background: #f0f0f0;
  color: #333;
}

#closeModalBtn:hover {
  background: #e0e0e0;
} 